<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    div[class]{
        background-color: yellow;
    }
    div[class$="3"]{
        background-color: aquamarine;
    }
    p[class]{
        background-color: red;
    }
    div[class~=box1]{
        border: 2px solid blue;
    }
    input[type=email]{
        background-color: yellow;
    }
    input[type=number][class=a1]{
        background-color: yellow;
    }
</style>
</head>
<body>
    <div class="box1">d111</div>
    <div class="box2">d222</div>
    <div class="box3">3030303</div>
    <div>333</div>
    <div  class="box1 box5">55555</div>
    <p class="box1">p111</p>
    <p class="box2">p222</【>
    <p >p333</p>

    <div>
        姓名<input type="text" name="username" id=""><br>
        密码<input type="password" name="password" id=""><br>
       电话 <input type="number" name="number" id="" class="a2"><br>
       电话 <input type="number" name="number" id="" class="a1"><br>
        邮箱<input type="email" name="email" id=""><br>
    </div>
</body>
</html>